package com.supreme.uploadserver.component;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class UploadApplicationRunner implements ApplicationRunner {

    @Value("${supreme.config.text1}")
    private String text1;

    @Value("${supreme.config.text2}")
    private String text2;

    @Value("${supreme.config.text3}")
    private String text3;

    @Value("${supreme.config.text4}")
    private String text4;

    @Value("${supreme.config.text5}")
    private String text5;

    @Value("${supreme.config.text6}")
    private String text6;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("text1 = " + text1);
        System.out.println("text2 = " + text2);
        System.out.println("text3 = " + text3);
        System.out.println("text4 = " + text4);
        System.out.println("text5 = " + text5);
        System.out.println("text6 = " + text6);
    }
}
